<template>
    <div class="pop-layout" ref="popRef">
        <ul class="my-pop-header-box">
            <li>{{ 'title' || "标题内容" }}</li>
            <li><i  class="icon-yidong"></i></li>
            <li><i  class="icon-guanbi"></i></li>
        </ul>
        <slot name="content"></slot>
    </div>
</template>
<script setup>
import { ref } from 'vue'

</script>

<style scoped lang='scss'>
.pop-layout {
    position: absolute;
    top: 200px;
    left: calc(50% - 250px);
    width: 500px;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, .12);
    overflow: hidden;
    z-index: 999;
}

.my-pop-header-box {
    width: 100%;
    height: 40%;
    display: flex;
    list-style: none;
    background: #055460;
    opacity: 0.9;
    height: 40px;
    margin: 0;
    color: white;

    & li {
        position: relative;
    }

    & li:nth-child(n + 2) {
        border-radius: 2px;
        padding: 4px 10px;
        box-sizing: border-box;
        cursor: pointer;
    }

    & li:nth-child(1) {
        position: absolute;
        left: 20px;
        font-weight: bold;
        font-size: 16px;
        color: #FFFFFF;
        line-height: 40px;
    }

    & li:nth-child(2) {
        cursor: move;
    }

    & li:nth-child(n + 2):hover {
        background: rgba(2, 53, 61, 1);
    }
}
</style>
